#include <stdio.h>
#define SPACE ' '
int main(void)
{
	int i=0,j=0,k=0;
	char ch;
	printf("Please enter the character :\n");
	while((ch = getchar()) != '#'){
		if(SPACE == ch)
			i++;
			
		else if('\n' == ch)
			j++;
		
		else
			k++;
	}
	printf("the num of SPACE is %d\n",i);
	printf("the num of ENTER is %d\n",j);
	printf("the num of char is %d\n",k);
	
	return 0; 
} 

